package com.ccc.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Parameter entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "parameter")
public class Parameter implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer taxRate;
	private Integer interestRate;
	private Integer loanBase;

	// Constructors

	/** default constructor */
	public Parameter() {
	}

	/** full constructor */
	public Parameter(Integer taxRate, Integer interestRate, Integer loanBase) {
		this.taxRate = taxRate;
		this.interestRate = interestRate;
		this.loanBase = loanBase;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	public Integer getTaxRate() {
		return taxRate;
	}

	public void setTaxRate(Integer taxRate) {
		this.taxRate = taxRate;
	}

	public Integer getInterestRate() {
		return interestRate;
	}

	public void setInterestRate(Integer interestRate) {
		this.interestRate = interestRate;
	}

	@Column(name = "loanBase", nullable = false)
	public Integer getLoanBase() {
		return this.loanBase;
	}

	public void setLoanBase(Integer loanBase) {
		this.loanBase = loanBase;
	}

}